home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cm100exe.zip / CM100EXE.EXE / SAMPLES / WINDOWS / MAKEFILE < prev    next >
Text File  |  1991-11-16  |  3KB  |  81 lines

  1. /*****************************************************************************
  2. *                              MAKEFILE
  3. *
  4. *  PURPOSE: Build the following modules:
  5. *
  6. *           "hw.res"
  7. *           "hw.obj"
  8. *           "hw.exe"
  9. *
  10. *  NOTE: None of the comments in this make file are required.  They have
  11. *        been provided to help you understand how CMAKE handles each
  12. *        command.  In other words, this make file could be reduced down to
  13. *        the following four commands:
  14. *
  15. *        rc /r hw.rc
  16. *        cl /c /AS /Gsw /Oas /Zpe hw.c
  17. *        link @hw.lnk
  18. *        rc hw.res
  19. *
  20. *****************************************************************************/
  21.  
  22. /*****************************************************************************
  23. *                               HW.RES
  24. *
  25. *  The following RC compile command will be executed only when one of the
  26. *  following conditions is true:
  27. *
  28. *  1. "hw.res" does not exist.
  29. *  2. "hw.rc" is newer than "hw.res".
  30. *  3. "hw.h" is newer than "hw.res".
  31. *  4. "hw.ico" is newer than "hw.res".
  32. *  5. "hw.dlg" is newer than "hw.res".
  33. *
  34. *****************************************************************************/
  35.  
  36. rc /r hw.rc
  37.  
  38. /*****************************************************************************
  39. *                               HW.OBJ
  40. *
  41. *  The following CL command will be executed only when one of the
  42. *  following conditions is true:
  43. *
  44. *  1. "hw.obj" does not exist.
  45. *  2. "hw.c" is newer than "hw.obj".
  46. *  3. "hw.h" is newer than "hw.obj".
  47. *
  48. *****************************************************************************/
  49.  
  50. cl /c /AS /Gsw /Oas /Zpe hw.c
  51.  
  52. /*****************************************************************************
  53. *                               HW.EXE
  54. *
  55. *  The following LINK command will be executed only when one of the
  56. *  following conditions is true:
  57. *
  58. *  1. "hw.exe" does not exist.
  59. *  2. "hw.obj" is newer than "hw.exe".
  60. *  3. "c:\windev\lib\libw.lib" is newer than "hw.exe".
  61. *  4. "c:\windev\lib\slibcew.lib" is newer than "hw.exe".
  62. *  5. "hw.def" is newer than "hw.exe".
  63. *
  64. *****************************************************************************/
  65.  
  66. link @hw.lnk
  67.  
  68. /*****************************************************************************
  69. *                        ADD HW.RES TO HW.EXE
  70. *
  71. *  The following RC command (used to add the resource file, "hw.res",
  72. *  to the executable file, "hw.exe") will be executed only when one of
  73. *  the following conditions is true:
  74. *
  75. *  1. The previous RC command used to build, "hw.res", was executed.
  76. *  2. The previous LINK command used to build, "hw.exe", was executed.
  77. *
  78. *****************************************************************************/
  79.  
  80. rc hw.res
  81.